package com.sdy.healthcode.biz.constants;

public class Constants {
    public static final Integer QRCODE_CARD_REDIS_SECONDS = 1200;
    public static final Integer QRCODE_CARD_REDIS_EFFECT_SECONDS = 600;
    /**
     * 二维码长宽
     */
    public static final Integer QRCODE_SIZE = 500;
    /**
     * 二维码图片格式
     */
    public static final String QRCODE_FORMAT = "png";
    /**
     * 文件存放文件夹
     */
    public static final String UPLOAD_FILE_PATH = "/opt/file/healthcode";
    /**
     * 二维码存放文件夹
     */
    public static final String QRCODE_PATH = UPLOAD_FILE_PATH + "/qrcode";
    /**
     * 二维码存放文件夹
     */
    public static final String IDCARD_PATH = UPLOAD_FILE_PATH + "/idcard";
    
//    public static final String SESSION_WXID = "wxid";

    public static final String SESSION_WX = "wxSession";
    /**
     * 正则表达式：验证手机号
     */
//    webapp static final String REGEX_PHONE = "^1((3[(0-3)(5-9)]|49|5[0-35-9]|66|7[35-8]|8[0-9]|9[89])[0-9]|34[0-8])[0-9]{7}$";
    public static final String REGEX_PHONE = "^1[0-9]{10}$";
    /**
     * 登录短信验证码有效时间（秒)
     */
    public static final Integer LOGIN_SMS_CODE_EXPIRE_SECONDS = 300;
    /**
     * 登录验证码短信发送频率
     */
    public static final Integer LOGIN_SMS_CODE_SEND_LOCK_SECONDS = 60;
    /**
     * Session过期时间（秒）
     */
    public static final Integer SESSION_SECOND_OUT = 86400 * 90;
    /**
     * 达到多少次验证码错误后锁定
     */
    public static final Integer LOGIN_FAILED_MAX_TIMES = 5;
    /**
     * 短信验证码错误过多锁定时间（分）
     */
    public static final Integer LOGIN_FAILED_LOCK_MINUTE = 10;
    public static final String YES_CN = "是";
    public static final String NO_CN = "否";
    public static final Integer CODE_MAX_APPLY_TIMES = 2;

    /**
     * 黄转绿 健康打卡天数
     */
    public static final Integer HEALTH_CLOCKIN_DAY_Y_TO_G = 7;
    /**
     * 红转绿 健康打卡天数
     */
    public static final Integer HEALTH_CLOCKIN_DAY_R_TO_G = 14;

    /**
     * 需要和数据库表中的省市全名相同
     */
    public static final String REGION_PROVINCE_NAME = "黑龙江省";
    public static final String REGION_CITY_NAME = "佳木斯市";

    /**
     * WEB端用户SESSION
     */
//    public static final String SESSION_WEB_USER_ID = "webUserId";
    public static final String SESSION_WEB_USER_ID = com.sdy.common.constant.Constants.SESSION_USER_ID;

    public static final String[] WEEK_Z_STR = {"周日", "周一", "周二", "周三", "周四", "周五", "周六"};
}
